package br.com.estevam.sisfin.pages.consultas;

import java.util.List;

import org.apache.tapestry5.ioc.annotations.Inject;

import br.com.estevam.sisfin.base.DefaultPage;
import br.com.estevam.sisfin.daos.interfaces.SexoDAO;
import br.com.estevam.sisfin.entities.Sexo;

public class ConsultaSexo extends DefaultPage {

	private Sexo sexo;
	
	@Inject
	private SexoDAO sexoDAO;
	
	@SuppressWarnings("unchecked")
	public List<Sexo> getListSexo() {
		return (List<Sexo>) sexoDAO.findAll();
	}

	public Sexo getSexo() {
		return sexo;
	}

	public void setSexo(Sexo sexo) {
		this.sexo = sexo;
	}

}
